package com.qiuyang.mapper;

import com.qiuyang.pojo.Type;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TypeMapper {
    void insertType(Type type);
    void deleteTypes(Long id);
    void updateTypes(Type type);
    Type findTypeByName(String name);
    Type findTypeById(Long id);


    List<Type> getAllType();
}
